package com.fulu.javabase.arithmetic;

import java.math.BigDecimal;
import java.math.RoundingMode;

/**
 * 计算自然对数底
 */
public class LnCalc {

    public static void main(String[] args) {
        // (1 + (1/n))^n
        double money = 1d;
        int mi = Integer.MAX_VALUE;
        double r = Math.pow((money + money/mi), mi);
        System.out.println(r);

    }
}
